package com.wanxi.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class GetCollectionStream {
    public static void main(String[] args) {
        List<String>  list=new ArrayList<>();
        list.add("张三");
        list.add("张三丰");
        list.add("张三李四");
        list.add("张冠李戴");
        list.add("李四");
        list.add("王五");
        Stream<String> stream = list.stream();
//        System.out.println(stream.collect(Collectors.toList()));

    }
}
